package com.demo2do.boyle.client.service;

import java.util.List;

import com.demo2do.boyle.common.entity.advertisement.Advertisement;
import com.demo2do.boyle.common.entity.customer.Customer;
import com.demo2do.boyle.common.entity.system.Variable;
import com.demo2do.boyle.common.entity.task.Task;
import com.demo2do.core.entity.Result;
import com.demo2do.core.service.GenericService;
import com.demo2do.core.web.resolver.Page;

/**
 * @author mohanlan
 */
public interface TaskService extends GenericService<Task>{
	
	/**
	 * List customer task
	 * @param customer
	 * @param taskStatus
	 * @param page
	 * @return
	 */
	public List<Task> listByCustomer(Customer customer, String status, Page page);
	
	/**
	 * Create a task by customer and advertisement
	 * @param customer
	 * @param advertisement
	 * @return
	 */
	public Result create(Customer customer, Advertisement advertisement,Variable variable);
	
}
